This is a test fix.
lock_stats_suboperation_logs.js relies on getting all the logs from the mongod program. However, calling rawMongoProgramOutput() after a command has finished does not guarantee that all the logs related to the command will be captured. Instead, we need to stop the mongod before calling rawMongoProgramOutput() to get all the logs.