if a thread is locked, the reply buttons all now say "locked", and the
post reply window will not pop up
restricting post replies if a thread is locked (returns pid of -1 instead)
Merge remote-tracking branch 'origin'