Protected accesses to megatest.db and monitor.db with journal file busy control