As jack.mulrow@mongodb.com pointed out, the mongos fsync with lock command can also hit a deadlock scenario similar to the one described in https://jira.mongodb.org/browse/SERVER-65821.
In order to circumvent the possibility of a deadlock, a timeout can be added to the fsync with lock command. Refer to the OperationContext's setDeadlineAfterNowBy() method.