checkin checkout file nonxml

I need to block a file when this it is being used by a user and soon to unblock when it lets be used