hack together a reentrant-lock-based bolt