PDB-510 Add explicit locking and move fix-identity-sequence

This patch adds explicit locking of tables to fix-identity-sequence and moves
the function under storage-utils.clj.

Signed-off-by: Ken Barber <ken@bob.sh>