One option is to print the complete part including locks. (after assembly, the lock will break, but the part will hold)
The second option is printing without locks. And then print the locks with better otientation on the bed. Subsequently, the locks are glued into the part.