BCCVL-305 Data Mover sometimes fails to update the status of a move job

Add locking to database classes