Hi,
Please find attached a patch to take code-coverage of LOCK TABLE (src/backend/commands/lockcmds.c) from 57% to 84%.
Any and all feedback is welcome.--Robins Tharakan