When you build a gun, the barrel is inlet and set in place before you start putting in the lock. Once the lock is in, go ahead and drill and tap your tang bolt. Install. Then drill and tap your lock plate bolts. Put the lock in, tighten up the bolts, and check for function. Many times, you will have pulled in the lock works closer to the wood, causing hang ups. Use your inletting black, and re-inlet so things one more function correctly, tightening the bolts to be sure you are tight in the mortise. This is also the time to be sure your bolster is correctly fit, as it can allow the lock to rock causing problems, not to mention on flintlocks allowing prime down into the lock works. Also check the screw tension on the bridal screws, be sure there is enough play.
When I started building guns, I always wanted the inletting to be as close as possible. I have found over the years, this is not a good thing. Fine in the shop and dry weather, but take it out in wet weather, or send it to a damper part of the country, and the lock can stop functioning from the wood swelling. Another good point for a loose ramrod. Fit them too close, and they can swell and stick in the thimbles and forestock. Better to make them skinny, heat them up to put a bit of a bend in them to make them stay in place.
I'm not exactly an amateur, I'm building #169 at the time.