Added option LOCK_ON_WRITE_CONTEXT_INTO_PAYLOAD_DB to file '' which controls whether to acquire a lock or not when writing context data into associated payload database.

This avoids possible deadlock situations that may occur on concurrent context create operations that are not resolvable through performing a retry strategy with exponential back-off.

Default is false (no lock is supposed to be acquired)