[service] allow expiration by mutex locking
refactor book template generation for SFB