Lock when mounting while creating baseimage to be more thread-safe