fix mlock_impl usage