NGIN-13: Take care of all APC memory operations immediately before doing SQL insert or update operations to lock other instances of the same code from picking up old data already scheduled to be written back to the database.