SERVER-10582 oplog_all_ops.js fails on Assertion failure, mutex problem when locking RSM

Make sure that BackgroundJob is running before calling wait.